Release 10.1A: OpenEdge Development:
Debugging and Troubleshooting


Query plan

The query plan contains the following information about how OpenEdge extracts information for the query:

OpenEdge logs and collates query plan information at specific times, based on query type, as follows:

Identifying indices

Query Info logging identifies single and multiple index brackets used by the query engine for FOR and PRESELECT statements. It also identifies indices for dynamic and static queries that use multiple index brackets. Selected indices will display in a comma-separated list in the Query Plan.

Note: When using dataservers, the logged index behavior may not accurately reflect the indices used to resolve the query against the non-Progress database. For more information, see OpenEdge Getting Started: Database Essentials .

For the following FOR EACH statement:

FOR EACH invoice 
  WHERE ((invoice.ordernum >= 102) AND 
          (invoice.custnum >= 28 AND invoice.custnum <= 30) AND 
          (invoice.invoicenum > 100 AND invoice.invoicenum <= 105)) OR 
        ((invoice.ordernum > 118 AND invoice.ordernum <= 119) AND 
          (invoice.custnum = 46) AND (invoice.invoicenum > 115 AND 
          (invoice.invoicenum < 120)) OR  
          (invoicenum = 136) 

Query Info logging produces the following Query Plan:

Query Plan: C:\work\100a\qitest.p line 1 
QueryId: 0xec091c 
Type: FOR Statement 
Client Sort: N  
Scrolling: N 
Table: sports2000.Invoice  
 Indexes: InvoiceNum,CustNum 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095